package com.bwie.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.bwie.domain.TbExpress;
import com.bwie.mapper.TbExpressMapper;
import com.bwie.service.TbExpressService;
import com.bwie.utils.R;
import com.bwie.vo.PageInfoVo;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class TbExpressServiceImpl implements TbExpressService {
    @Resource
    TbExpressMapper tbExpressMapper;

    @Override
    public R getExpressList(PageInfoVo pageInfoVo) {
        Page<TbExpress> page = new Page<>(pageInfoVo.getPageNum(), pageInfoVo.getPageSize());

        Page<TbExpress> tbExpressPage = tbExpressMapper.selectPageList(page, null);
        return R.OK(tbExpressPage);
    }
}
